<!doctype html>
<html>
 <head>
  <meta charset="UTF-8">  
  <title>修改图书信息</title>
 </head>
 <body>
 <?php 
$row = $data['one'][0];
//var_dump($row);


  ?>
<form method="post"  action="admin.php?c=book&m=update&id=$data['one']['0']['bid']" enctype="multipart/form-data" >
<table align="center" border="1" width=500>
<caption>修改图书信息</caption>
<tr>
  <td width="20%">id</td>
  <td width="80%"><?php  echo $row['bid']; ?>
  <input type="hidden" name="bid" value=<?php  echo $row['bid'] ;?> > 
  </td>
</tr>
<tr>
  <td>图书名称：</td>
  <td><input type="text" name="bookname" size=30  value=<?php  echo  $row['bookname']; ?> >
  </td>
</tr>

<tr>
  <td>图书类型：</td>
  <td><!-- <input type="text" name="tid" size=30  value=<?php  //echo $row['typename']; ?> > -->
    <select name="bookid" required>
                <option value="1">请选择</option>
        <option value="1">科技类</option>
        <option value="2">人文类</option>
        <option value="3">小说类</option>
        <option value="4">动漫类</option>
        <option value="5">杂志类</option>
       

      </select>
  </td>
</tr>

<tr>
  <td>图片:</td>
  <td><input type="file" name="pic" size=30  value=<?php  echo $row['pic']; ?> ></td>
</tr>

<tr>
  <td>内容简介:</td>
  <td><input type="text" name="intro" size=30  value=<?php  echo $row['intro']; ?> ></td>
</tr>

<tr>
  <td>添加日期:</td>
  <td><input type="date" name="uploaddate" size=30  value=<?php  echo $row['uploaddate']; ?> ></td>
</tr>

<tr>
  <td>上传用户:</td>
  <td><input type="text" name="uploadadmin" size=30  value=<?php  echo $row['uploadadmin']; ?> ></td>
</tr>

<tr>
  <td>借阅次数:</td>
  <td><input type="text" name="borrytime" size=30  value=<?php  echo $row['borrytime']; ?> ></td>
</tr>

<tr>
  <td>推荐次数:</td>
  <td><input type="text" name="hittime" size=30  value=<?php  echo $row['hittime']; ?> ></td>
</tr>



<tr>
<td width=150></td>
<td>
<input type="submit" value="更新">
<input type="reset" value="重置">
</td>
</tr>
</table>
</form>
 </body>
</html>
